home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / win / general / boiler.exe / SKEL.DAT < prev    next >
Text File  |  1993-03-24  |  2KB  |  106 lines

  1. program @XX5;
  2. @ZZ7
  3.  
  4. uses
  5.   {$ifdef VER70}
  6.   Objects, OWindows, ODialogs, WinTypes, WinProcs, Strings, OStdDlgs, OStdWnds, Windos;
  7.   {$else}
  8.   WObjects, WinTypes, WinProcs, Strings, StdDlgs, StdWnds, Windos;
  9.   {$endif}
  10.  
  11. @ZZ6
  12. type
  13.   T@XX1 = object(TApplication)
  14.     procedure InitInstance; virtual;
  15.     procedure InitMainWindow; virtual;
  16. @ZZ11
  17.     function ProcessAppMsg(var Message: TMsg): Boolean; virtual;
  18. @ZZ11
  19.   end;
  20.  
  21.   P@XX2 = ^T@XX2;
  22.   T@XX2 = object(@XX0)
  23. @ZZ9
  24.  
  25.     constructor Init(ATitle : PChar);
  26.     procedure SetupWindow ; virtual;
  27.     function GetClassName : PChar; virtual;
  28.     procedure GetWindowClass(var AWndClass : TWndClass); virtual;
  29. @ZZ0
  30.     destructor Done; virtual;
  31.   end;
  32.  
  33. @XX9{-------T@XX2.Init}
  34. constructor T@XX2.Init(ATitle : PChar);
  35. begin
  36. @XX0.Init(Nil, @XX8);
  37. @ZZ8
  38. with Attr do
  39.   begin
  40.   Style := @XX6;
  41. @ZZ2
  42.   end;
  43. @ZZ8
  44. end;
  45.  
  46. {-------T@XX2.SetupWindow;}
  47. procedure T@XX2.SetupWindow;
  48. begin
  49. @XX0.SetupWindow;
  50. @ZZ10
  51. end;
  52.  
  53. {-------T@XX2.GetClassName}
  54. function T@XX2.GetClassName : PChar;
  55. begin
  56. GetClassName := '@XX3';
  57. end;
  58.  
  59. {-------T@XX2.GetWindowClass}
  60. procedure T@XX2.GetWindowClass(var AWndClass : TWndClass);
  61. begin
  62. @XX0.GetWindowClass(AWndClass);
  63. with AWndClass do
  64.   begin
  65. @ZZ3
  66. @ZZ4
  67.   Style := @XX7;
  68.   end;
  69. end;
  70.  
  71. @ZZ1
  72. {------T@XX2.Done}
  73. destructor T@XX2.Done;
  74. begin
  75. @XX0.Done;
  76. end;
  77.  
  78. {------T@XX1.InitMainWindow}
  79. procedure T@XX1.InitMainWindow;
  80. begin
  81.   MainWindow := New(P@XX2, Init('@XX4'));
  82. end;
  83.  
  84. {------T@XX1.InitInstance}
  85. procedure T@XX1.InitInstance;
  86. begin
  87. TApplication.InitInstance;
  88. @ZZ5
  89. end;
  90.  
  91. @ZZ11
  92. {------T@XX1.ProcessAppMsg}
  93. function T@XX1.ProcessAppMsg(var Message: TMsg): Boolean;
  94. begin
  95.   ProcessAppMsg := ProcessAccels(Message) or ProcessDlgMsg(Message);
  96. end;
  97.  
  98. @ZZ11
  99. var
  100.   App : T@XX1;
  101. begin
  102.   App.Init('@XX2');
  103.   App.Run;
  104.   App.Done;
  105. end.
  106.